package me.zhengjie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.zhengjie.pojo.entity.ExamRoom;
import me.zhengjie.pojo.vo.ExamRoomVo;
import me.zhengjie.pojo.vo.RoomTearcherStudentVo;
import org.springframework.stereotype.Component;

/**
 * @author Long
 * @date 2021/6/28 14:05
 */
@Component
public interface ExamRoomMapper extends BaseMapper<ExamRoom>{
    /**
     * 查询考场信息及其对应的考试信息、教室信息
     * @param id 考场id
     * @return 相关考场信息
     */
    ExamRoomVo findOneById(Integer id);

    /**
     * 考务人员查询该考场的信息
     * @param id 考场id
     * @return 该考场相关信息
     */
    RoomTearcherStudentVo findOneExamRoom(Integer id);
}
